Skip to content

Refactor - split SyncodeLogitsProcessor into two classes#169

Merged
shubhamugare merged 1 commit intomainfrom
refactor
Mar 20, 2025
Merged

Refactor - split SyncodeLogitsProcessor into two classes#169
shubhamugare merged 1 commit intomainfrom
refactor

Conversation

@shubhamugare
Copy link
Collaborator

Extracted core logic into the GrammarConstrainer class while maintaining the same interface for SyncodeLogitsProcessor. This improves the separation of concerns and makes the code more maintainable. Added detailed documentation about
grammar_mask vs grammar_strict modes with reference to the SynCode paper.

@shubhamugare shubhamugare merged commit 2b77104 into main Mar 20, 2025
1 check passed
@shubhamugare shubhamugare deleted the refactor branch March 20, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments